package com.sun.mybatisplus.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.mybatisplus.entity.SysUser;
import com.sun.mybatisplus.mapper.DynamicMapper;
import com.sun.mybatisplus.service.DynamicService;
import org.springframework.stereotype.Service;

/**
 * @Auth: syh
 * @Date: 2021/10/19 10:44
 * @Email: 1014170249@qq.com
 * @Desc: 不在能知，而在能行
 *
 * @DS注解，指向主从节点的数据库
 */
@Service
@DS(value = "slave")
public class DynamicServiceImpl extends ServiceImpl<DynamicMapper, SysUser> implements DynamicService {
}
